package com.ss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ss.entity.enums.SummerBackType;
import com.ss.entity.enums.SummerNodeType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 节点表
 * </p>
 *
 * @author xia17
 * @since 2019-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SummerNode implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 节点名
     */
    private String name;

    /**
     * 节点备注
     */
    private String remark;

    /**
     * 上一个节点
     */
    private Integer preNode;

    /**
     * 下一个节点
     */
    private Integer nextNode;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 退回类型
     */
    private SummerBackType backType;

    /**
     * 节点类型
     */
    private SummerNodeType type;

    /**
     * 流id
     */
    private Integer flowId;


}
